package com.wxy.gxs.springbootprojectday20.bean;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Result implements Serializable {

    private Map<String,Object> data=new HashMap<>();
    private String message;
    private boolean flag;

    public Result(String message, boolean flag) {
        this.message = message;
        this.flag = flag;
    }

    public Result() {
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Result{" +
                "data=" + data +
                ", message='" + message + '\'' +
                ", flag=" + flag +
                '}';
    }
}
